#include<stdio.h>
int main()
{
	int a=1;
	double s=0;
	printf("s=");
	while(a<=50)
	{
		s=s+1.0/a;
		printf("1/%d+",a);
		a++;
	
	}
	printf("\b=%lf",s);
	return 0;
	
}